import request from '@/plugins/request';
var pre = '/vacc';
if (process.env.NODE_ENV !== "development") {
    pre = '/api/sa/epid-prevention' + pre;
}

// 查询疫苗接种人员信息
export function getPageForVaccination(data) {
    return request({
      url: `${pre}/page`,
      method: "post",
      data,
    });
  }

// 保存疫苗接种人员信息
export function saveVaccinationPerson(data) {
    return request({
        url: `${pre}/save`,
        method: 'post',
        data
    });
}
// 查询疫苗接种人员详情
export function queryVaccinationDetail(data) {
    return request({
        url: `${pre}/detail${data}`,
        method: 'get',
    });
}
// 查询疫苗接种人员统计详情
export function queryVaccinationStatisticsDetail(data) {
    return request({
        url: `${pre}/statdetail`,
        method: 'post',
        data
    });
}
// // 删除疫苗接种人员
export function deleteVaccination(data) {
    return request({
        url: `${pre}/del`,
        method: 'post',
        data
    });
}

// 导出疫苗接种模板
export function exportVaccination() {
    return request({
        url: `${pre}/export`,
        method: 'post',
        responseType: 'blob'
    });
}

// 导入疫苗接种清单
export function importVaccination(data) {
    return request({
        url: `${pre}/import`,
        method: 'post',
        data
    });
}